<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org"  th:headers="utf-8">
    
    <head>
        <meta charset="UTF-8">
        <title>添加管理员</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" th:href="@{/css/font.css}">
        <link rel="stylesheet" th:href="@{/css/index.css}">
        <script type="text/javascript" th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
        <script type="text/javascript" th:src="@{/js/index.js}"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->

    </head>
        <body>
            <div class="layui-fluid">
                <div class="layui-row">
                    <form class="layui-form" th:action="@{/student/modify}" method="post">
                      <div class="layui-form-item">
                          <label for="id" class="layui-form-label">
                              <span class="x-red">*</span>学号
                          </label>
                          <div class="layui-input-inline">
                              <input type="text" id="id" name="id" required="" lay-verify="required" th:value="${student.getId()}"
                              autocomplete="off" class="layui-input">
                          </div>
                          <div class="layui-form-mid layui-word-aux">
                              <span class="x-red"></span>
                          </div>
                      </div>
                      <div class="layui-form-item">
                          <label for="name" class="layui-form-label">
                              <span class="x-red">*</span>姓名
                          </label>
                          <div class="layui-input-inline">
                              <input type="text" id="name" name="name" required="" lay-verify="name" th:value="${student.getName()}"
                              autocomplete="off" class="layui-input">
                          </div>
                          <div class="layui-form-mid layui-word-aux">
                              <span class="x-red"></span>
                          </div>
                      </div>
                      <div class="layui-form-item">
                          <label for="sex" class="layui-form-label">
                              <span class="x-red">*</span>性别
                          </label>
                          <div class="layui-input-inline">
                              <input type="text" id="sex" name="sex" required="" lay-verify="sex"  th:value="${student.getSex()==1?'男':'女'}"
                              autocomplete="off" class="layui-input">
                          </div>
                          <div class="layui-form-mid layui-word-aux">
                              <span class="x-red"></span>
                          </div>
                      </div>
                      
                      <div class="layui-form-item">
                          <label for="faculty_name" class="layui-form-label">
                              <span class="x-red">*</span>院级
                          </label>
                          <div class="layui-input-inline">
                              <input type="text" id="faculty_name" name="faculty_name" required="" lay-verify="facuity_name" th:value="${student.getFaculty_name()}"
                              autocomplete="off" class="layui-input">
                          </div>
                          <div class="layui-form-mid layui-word-aux">
                    
                          </div>
                      </div>
                      <div class="layui-form-item">
                          <label for="spec_name" class="layui-form-label">
                              <span class="x-red">*</span>专业
                          </label>
                          <div class="layui-input-inline">
                              <input type="text" id="spec_name" name="spec_name" required="" lay-verify="spec_name" th:value="${student.getSpec_name()}"
                              autocomplete="off" class="layui-input">
                          </div>
                      </div>
    				  <div class="layui-form-item">
    				      <label for="class_name" class="layui-form-label">
    				          <span class="x-red">*</span>班级
    				      </label>
    				      <div class="layui-input-inline">
    				          <input type="text" id="class_name" name="class_name" required="" lay-verify="class_name" th:value="${student.getClass_name()}"
    				          autocomplete="off" class="layui-input">
    				      </div>
    				  </div>
					  <div class="layui-form-item">
					      <label for="apart_num" class="layui-form-label">
					          <span class="x-red">*</span>公寓号
					      </label>
					      <div class="layui-input-inline">
					          <input type="text" id="apart_num" name="apart_num" required="" lay-verify="apart_num" th:value="${student.getApart_num()}"
					          autocomplete="off" class="layui-input">
					      </div>
					  </div>
					  <div class="layui-form-item">
					      <label for="dormi_num" class="layui-form-label">
					          <span class="x-red">*</span>寝室号
					      </label>
					      <div class="layui-input-inline">
					          <input type="text" id="dormi_num" name="dormi_num" required="" lay-verify="dormi_num" th:value="${student.getDormi_num()}"
					          autocomplete="off" class="layui-input">
					      </div>
					  </div>
					  <div class="layui-form-item">
					      <label for="bed_num" class="layui-form-label">
					          <span class="x-red">*</span>床号
					      </label>
					      <div class="layui-input-inline">
					          <input type="text" id="bed_num" name="bed_num" required="" lay-verify="bed_num" th:value="${student.getBed_num()}"
					          autocomplete="off" class="layui-input">
					      </div>
					  </div>
					  <div class="layui-form-item">
					      <label  class="layui-form-label">
					          <span class="x-red">*</span>电话
					      </label>
					      <div class="layui-input-inline">
					          <input type="text" id="phone1" name="phone1" required="" lay-verify="phone"  th:value="${student.getPhone1()}"
					          autocomplete="off" class="layui-input">
					      </div>
					  </div>
                      <div class="layui-form-item">
                          <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                          <label for="L_repass" class="layui-form-label">
                          </label>
                          <button  class="layui-btn" lay-filter="modify" lay-submit="">
                              修改
                          </button>
                      </div>
                  </form>
                </div>
            </div>
            <script>layui.use(['form', 'layer'],
                function() {
                    $ = layui.jquery;
                    var form = layui.form,
                    layer = layui.layer;
                });</script>
            <script>var _hmt = _hmt || []; (function() {
                    var hm = document.createElement("script");
                    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(hm, s);
                })();</script>
        </body>
    
    </html>
    